<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: libemb::FilePath Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>libemb</b></li><li class="navelem"><a class="el" href="classlibemb_1_1_file_path.html">FilePath</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classlibemb_1_1_file_path-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">libemb::FilePath Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>文件路径  
 <a href="classlibemb_1_1_file_path.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_file_util_8h_source.html">FileUtil.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4967895b2671d9ac6d9f6cf092c9cd39"><td class="memItemLeft" align="right" valign="top"><a id="a4967895b2671d9ac6d9f6cf092c9cd39"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>FilePath</b> (const std::string &amp;filePath)</td></tr>
<tr class="separator:a4967895b2671d9ac6d9f6cf092c9cd39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1ac03f38195e19be046cfe5d5a7dd75"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_file_path.html#ae1ac03f38195e19be046cfe5d5a7dd75">dirName</a> ()</td></tr>
<tr class="memdesc:ae1ac03f38195e19be046cfe5d5a7dd75"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取文件路径中的文件夹部分  <a href="classlibemb_1_1_file_path.html#ae1ac03f38195e19be046cfe5d5a7dd75">More...</a><br /></td></tr>
<tr class="separator:ae1ac03f38195e19be046cfe5d5a7dd75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7eebc5acf9f4453b2345f40ebb6f02f"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_file_path.html#ab7eebc5acf9f4453b2345f40ebb6f02f">baseName</a> ()</td></tr>
<tr class="memdesc:ab7eebc5acf9f4453b2345f40ebb6f02f"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取文件路径中的文件名部分  <a href="classlibemb_1_1_file_path.html#ab7eebc5acf9f4453b2345f40ebb6f02f">More...</a><br /></td></tr>
<tr class="separator:ab7eebc5acf9f4453b2345f40ebb6f02f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27141b9fa9467bbed768aeedc1b77e0c"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_file_path.html#a27141b9fa9467bbed768aeedc1b77e0c">suffix</a> ()</td></tr>
<tr class="memdesc:a27141b9fa9467bbed768aeedc1b77e0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取文件名后缀  <a href="classlibemb_1_1_file_path.html#a27141b9fa9467bbed768aeedc1b77e0c">More...</a><br /></td></tr>
<tr class="separator:a27141b9fa9467bbed768aeedc1b77e0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aeefbff749446731cba602bdb33b33308"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_file_path.html#aeefbff749446731cba602bdb33b33308">createLink</a> (const std::string &amp;filePath, const std::string &amp;linkPath, bool hard=false)</td></tr>
<tr class="memdesc:aeefbff749446731cba602bdb33b33308"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建文件链接  <a href="classlibemb_1_1_file_path.html#aeefbff749446731cba602bdb33b33308">More...</a><br /></td></tr>
<tr class="separator:aeefbff749446731cba602bdb33b33308"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>文件路径 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ab7eebc5acf9f4453b2345f40ebb6f02f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7eebc5acf9f4453b2345f40ebb6f02f">&#9670;&nbsp;</a></span>baseName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string libemb::FilePath::baseName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取文件路径中的文件名部分 </p>
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>

</div>
</div>
<a id="aeefbff749446731cba602bdb33b33308"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeefbff749446731cba602bdb33b33308">&#9670;&nbsp;</a></span>createLink()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::FilePath::createLink </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filePath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>linkPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>hard</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建文件链接 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filePath</td><td>文件路径 </td></tr>
    <tr><td class="paramname">linkPath</td><td>链接路径 </td></tr>
    <tr><td class="paramname">hard</td><td>是否是硬链接 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 创建成功 </dd>
<dd>
false 创建失败 </dd></dl>

</div>
</div>
<a id="ae1ac03f38195e19be046cfe5d5a7dd75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1ac03f38195e19be046cfe5d5a7dd75">&#9670;&nbsp;</a></span>dirName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string libemb::FilePath::dirName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取文件路径中的文件夹部分 </p>
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>

</div>
</div>
<a id="a27141b9fa9467bbed768aeedc1b77e0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27141b9fa9467bbed768aeedc1b77e0c">&#9670;&nbsp;</a></span>suffix()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string libemb::FilePath::suffix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取文件名后缀 </p>
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>
<dl class="section note"><dt>Note</dt><dd>如文件名为~/Document/note.txt,调用该方法将返回".txt" </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_file_util_8h_source.html">FileUtil.h</a></li>
<li>src/FileUtil.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
